require 'fileutils'
module Simapse::AssetFury
  module Storage
    module FileSystem
      
      def full_filename
        File.join("#{RAILS_ROOT}/downloads", self.id.to_s, self.filename)
      end
      
      def public_filename 
      
      end
    
    private
      def save_to_storage
        logger.info 'copying file to full_filename'
        FileUtils.mkdir_p(File.dirname(full_filename))
        FileUtils.rm_rf(current_file.from)     
        FileUtils.cp(current_file.path, full_filename)
      end
      
      
    end #FileSystem
  end #Storage
end #Simapse